<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>图片间隙</title>
    <style>
        .box {
            width: 280px;
            outline: 1px solid #aaa;
            text-align: center;
            /* 方法三 */
            /* line-height: 0 */
        }

        .box>img {
            width: 100px;
            /* 方法一 */
            /* display: block;
            margin: 0 auto; */
            /* 方法二 */
            /* vertical-align: top */
            /* vertical-align: bottom */
            /* vertical-align: middle */
        }
    </style>
</head>

<body>
    <div class="box">
        <img src="../../src/assets/pic_01.jpg" alt="">
    </div>
</body>

</html>